package com.gpay.erp.services.storage;

import com.gpay.erp.core.Services;
import com.gpay.erp.services.purchase.bean.Contract;
import com.gpay.erp.services.purchase.bean.ContractSub;
import com.gpay.erp.services.storage.bean.Mandan;
import com.gpay.erp.services.storage.bean.Storage;
import com.gpay.erp.services.storage.bean.StorageSub;

import java.util.List;

/**
 * Created by wuzonghui on 15/11/23.
 */
public interface StorageService extends Services<Storage> {
    Storage selectByFId(String id);

    String getStorageCode();

    int saveStorageSubs(Storage storage, List<StorageSub> storageSubs, ContractSub contractSub);

    int deleteStorageSubList(Storage storage, List<StorageSub> storageSubs, ContractSub contractSub, Contract contract);

    int updateStorageSubList(Storage storage, List<StorageSub> storageSubs, ContractSub contractSub);

    int deleteCancelStorageSubList(String[] storageSubId);
}
